<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    'APP_VERSION'           => 'v4.0',
    'APP_NAME'              => 'ApiAdmin',

    //鉴权相关
    'USER_ADMINISTRATOR'    => [1],

    //安全秘钥
    'AUTH_KEY'              => '78b70ef3-848b-be10-23ee-42669f3cd008',

    //后台登录状态维持时间[目前只有登录和解锁会重置登录时间]
    'ONLINE_TIME'           => 7200,
    //AccessToken失效时间
    'ACCESS_TOKEN_TIME_OUT' => 7200,
    'COMPANY_NAME'          => 'ApiAdmin开发维护团队',

    //appid和appSecret
    'APPID'                 =>'wx088864f850bba009',
    'APPSECRET'             =>'7541da0e6ea2c63c6af71a924f1cadb2',

    //跨域配置
    'CROSS_DOMAIN'          => [
        'Access-Control-Allow-Origin'      => '*',
        'Access-Control-Allow-Methods'     => 'POST,PUT,GET,DELETE',
        'Access-Control-Allow-Headers'     => 'version, access-token, user-token, apiAuth, User-Agent, Keep-Alive, Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With',
        'Access-Control-Allow-Credentials' => 'true'
    ],

    //后台列表默认一页显示数量
    'ADMIN_LIST_DEFAULT'    => 20,

    //log文件位置
    'ERR_LOG_PATH'      => "/log/errlog/",

    //后台商家logo上传文件夹
    'ADMIN_SHOP_LOGO'   => "shoplogo/",
    //房间照片上传文件夹
    'ADMIN_ROOM_PHOTO'  => "roomphoto/",
    //商家合作审核照片上传文件夹
    'SHOP_APPLY_EXAM'  => "applyexam/",

    //检查userToken
    'CHECK_USER_TOKEN'  => false,
];
